/**
 * User: zsquirrel
 * Date: 2020/5/11
 * Time: 5:26 下午
 */
package com.cskaoyan.mall.service;

import com.cskaoyan.mall.dao.UserDao;
import com.cskaoyan.mall.dao.UserDaoImpl;
import com.cskaoyan.mall.model.User;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

public class UserServiceImpl implements UserService {

    private UserDao userDao = new UserDaoImpl();

    @Override
    public List<User> allUser() {
        return userDao.allUser();
    }

    @Override
    public List<User> searchUser(String word) {

        return userDao.searchUser(word);
    }

    @Override
    public void signup(User user) {
        userDao.signup(user);
    }
}
